package com.spddr.pmos.jpa;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 交易结果详细实体类
 * created by wujie on 2017/4/12
 */
@Entity
@Table(name = "trade_result_detail")
public class TradeResultDetail extends JpaCommonAttr implements Serializable{
	private static final long serialVersionUID = 1L;
	
	//合同计划
	private ContractPlan contractPlan;
	//总的 量价费
	private Double energy;
	private Double price;
	private Double fee;
	//峰段 量价费
	private Double peakEnergy;
	private Double peakPrice;
	private Double peakFee;
	//平段 量价费
	private Double flatEnergy;
	private Double flatPrice;
	private Double flatFee;
	//谷段 量价费
	private Double valleyEnergy;
	private Double valleyPrice;
	private Double valleyFee;	
	
	public TradeResultDetail() {}

	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "contract_plan")
	public ContractPlan getContractPlan() {
		return contractPlan;
	}

	public void setContractPlan(ContractPlan contractPlan) {
		this.contractPlan = contractPlan;
	}

	@Column(name = "total_energy")
	public Double getEnergy() {
		return energy;
	}

	public void setEnergy(Double energy) {
		this.energy = energy;
	}

	@Column(name = "total_price")
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "total_fee")
	public Double getFee() {
		return fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	@Column(name = "peak_energy")
	public Double getPeakEnergy() {
		return peakEnergy;
	}

	public void setPeakEnergy(Double peakEnergy) {
		this.peakEnergy = peakEnergy;
	}

	@Column(name = "peak_price")
	public Double getPeakPrice() {
		return peakPrice;
	}

	public void setPeakPrice(Double peakPrice) {
		this.peakPrice = peakPrice;
	}

	@Column(name = "peak_fee")
	public Double getPeakFee() {
		return peakFee;
	}

	public void setPeakFee(Double peakFee) {
		this.peakFee = peakFee;
	}

	@Column(name = "flat_energy")
	public Double getFlatEnergy() {
		return flatEnergy;
	}

	public void setFlatEnergy(Double flatEnergy) {
		this.flatEnergy = flatEnergy;
	}

	@Column(name = "flat_price")
	public Double getFlatPrice() {
		return flatPrice;
	}

	public void setFlatPrice(Double flatPrice) {
		this.flatPrice = flatPrice;
	}

	@Column(name = "flat_fee")
	public Double getFlatFee() {
		return flatFee;
	}

	public void setFlatFee(Double flatFee) {
		this.flatFee = flatFee;
	}

	@Column(name = "valley_energy")
	public Double getValleyEnergy() {
		return valleyEnergy;
	}

	public void setValleyEnergy(Double valleyEnergy) {
		this.valleyEnergy = valleyEnergy;
	}

	@Column(name = "valley_price")
	public Double getValleyPrice() {
		return valleyPrice;
	}

	public void setValleyPrice(Double valleyPrice) {
		this.valleyPrice = valleyPrice;
	}

	@Column(name = "valley_fee")
	public Double getValleyFee() {
		return valleyFee;
	}

	public void setValleyFee(Double valleyFee) {
		this.valleyFee = valleyFee;
	}
	
}
